import {USER_CREATE} from "../actions/types";

const initialState = {
    username: "ggc",
    isLogin: true,
    status: 'online'
};

export default (state = initialState, action) => {

    switch (action.type) {
        case USER_CREATE:
            return {...state};
        case 'user-save':
            return {...state, status: "save"};
        case 'user-delete':
            return {...state, status: "delete"};
        case 'user-init':
            return {};
        default:
            return state
    }
}
